async function async1() {
  console.log("async1 start");
  await new Promise((resolve) => {
    console.log("promise1");
  });
  console.log("async1 success");
  return "async1 end";
}

console.log("srcipt start");

async1().then((res) => console.log(res));

console.log("srcipt end");

// script start
// async1 start
// promise1
// script end
// async1 success ❌  await 那里没有resolve, 所以一直都是等待的状态,死不死后面根本就不会执行
// async1 end ❌
